import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    text: {
      state: {
        msg: 'text liu'
      },
      getters: {
        getMsg: state => {
          return state.msg
        }
      },
      mutations: {
        printa(state,data) {
          console.log('asa','asa')
        }
      },
      namespaced: true
    }
  },
});
